'use strict';

if (process.env.NODE_ENV !== 'test') {
  require('babel-register')({
    only: /(webpack.config.js|.roadhogrc.js|.roadhogrc.mock.js|mock\/)/,
    presets: [require.resolve('babel-preset-es2015'), require.resolve('babel-preset-react'), require.resolve('babel-preset-stage-0')],
    plugins: [require.resolve('babel-plugin-add-module-exports')],
    babelrc: false
  });
}